package com.pozu.new_retail.service.impl;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pozu.new_retail.dao.mapper.ActivityMapper;
import com.pozu.new_retail.dao.model.Activity;
import com.pozu.new_retail.service.ActivityService;

@Service("activityService")
public class ActivityServiceImpl implements ActivityService {

	@Autowired
	private ActivityMapper activityMapper;
	
	@Override
	public List<Activity> queryByMap(HashMap<String, Object> map) {
		return activityMapper.queryByMap(map);
	}

	@Override
	public Activity queryByActivityId(int activityId) {
		return activityMapper.queryByActivityId(activityId);
	}

}
